package org.heart.entity.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * <p>
 * 用户消息关联表
 * </p>
 *
 * @author lml
 * @since 2025-06-29
 */
@Data
@TableName("l_user_message")
public class UserMessage implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 用户ID
     */
    private String userId;

    /**
     * 接收者ID
     */
    private String acceptId;

    /**
     * 消息ID
     */
    private Long messageId;

    /**
     * 0=未读，1=已读
     */
    private Integer readStatus;

    /**
     * 0=正常，1=用户删除
     */
    private Integer deleted;

    /**
     * 用户接收时间
     */
    private Date receiveTime;
}
